package com.biboheart.adapter.compiler.enums;

import com.biboheart.adapter.support.BaseEnum;

public enum CharType implements BaseEnum<String, String> {
    CHAR_SPACE("space", "空格"),
    CHAR_LETTER("letter", "字母"),
    CHAR_NUMBER("number", "数字"),
    CHAR_DOT("dot", "点"),
    CHAR_SQUOTES("squotes", "单引号"),
    CHAR_DQUOTES("dquotes", "双引号"),
    CHAR_BACKQUOTE("backquote", "反引号"),
    CHAR_UNDERLINE("underline", "下划线"),
    CHAR_CHARACTER("character", "符号"),
    CHAR_OTHER("other", "其他"),
    CHAR_EOF("eof", "结束符"),
    ;

    private final String code;
    private final String desc;

    CharType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String desc() {
        return desc;
    }
}
